<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="root">
			<school></school>
			<hello></hello>
		</div>
		<script type="text/javascript">
		Vue.config.productionTip=false
		const school = Vue.extend({
			template: `
					<div>
						<h2>学校名称:{{name}}</h2>
						<h2>学校地址:{{address}}</h2>
					</div>
				`,
			data() {
				return {
					name: '老八汉堡店',
					address: '厕所'
				}
			}
		})
		const hello=Vue.extend({
			template:
				`
					<h2>{{msg}}</h2>
				`,
				data(){
					return {
						msg:'你好'
					}
				}
		})
			const vm=new Vue({
				el:'#root',
				components:{
					school,
					hello
				}
			})
		</script>
	</body>
</html>
